﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Text.RegularExpressions;
using System.Collections.ObjectModel;
using VI.Fsc.OperatorGui.Models.Fsc.Configuration;

namespace OperGui.ViewModel
{
   
    public class ElementViewModel: ViewModelBase
    {
        ObservableCollection<CStructureItem> objectCollection;
        string parentid;

        public ElementViewModel(string parentID)
        {
            
            parentid = parentID;
           
            objectCollection = DataDispacher.Instance.LoadFSCErrors(new CStructureItem(parentid,null,null));
        }

        public string parentID
        {
            get { return parentid; }
            set { parentid = value; }
        }

        public ObservableCollection<CStructureItem> elementList
        {
            get {
                return objectCollection; 
            }
            set { objectCollection = value; base.OnPropertyChanged("elementList"); }
        }
    }
   
    
}
